<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<script>
    //声明一个map
    let m = new Map();

    //添加元素
    m.set('name','mask');
    m.set('change',function (){
        console.log("we can change you!");
    })
    let key = {
        school: 'at'
    }
    m.set(key,['beijing','sahnghai','sz']);
    console.log(m);
    //删除
    m.delete('name');

    //获取
    let change = m.get('change');
    console.log(change);

    //清空
    m.clear();

    //遍历
    for (let v of m){
        console.log(v);
    }
</script>

</body>
</html>